package com.zzmcc.jms.common;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.zzmcc.jms.model.*;


public class ModelConfigWms {
	

    public static final String TABLE_Contract = "jms_contract";
    public static final String TABLE_News = "jms_news";
    public static final String TABLE_Tower = "jms_tower";

    public static final String TABLE_Demand = "jms_demand";
    public static final String TABLE_Demand_Screen = "jms_demand_screen";
    public static final String TABLE_Demand_Order = "jms_demand_order";
    public static final String TABLE_Demand_Submit = "jms_demand_submit";

    public static final String TABLE_Project = "jms_project";
    public static final String TABLE_Project_Build = "jms_project_build";
    public static final String TABLE_Cu_Build = "jms_cu_build";

    public static final String TABLE_Project_Address = "jms_project_address";
    public static final String TABLE_Project_Submit = "jms_project_submit";
    public static final String TABLE_Project_Inspect = "jms_project_inspect";
    public static final String TABLE_Project_Equip = "jms_project_equip";
    public static final String TABLE_Project_Safeguard = "jms_project_safeguard";

    public static final String TABLE_Crm_Demand = "crm_demand";
    public static final String TABLE_Pms_Project = "pms_project";


    public static final String TABLE_Material = "jms_material";
    public static final String TABLE_Stock = "jms_stock";

    public static final String TABLE_Stock_Rent = "stock_rent";

	public static void config(ActiveRecordPlugin arp){

        arp.addMapping(TABLE_Contract,Contract.class);
        arp.addMapping(TABLE_News,News.class);
        arp.addMapping(TABLE_Tower,Tower.class);

        arp.addMapping(TABLE_Demand,Demand.class);
        arp.addMapping(TABLE_Demand_Screen,DemandScreen.class);
        arp.addMapping(TABLE_Demand_Order,DemandOrder.class);
        arp.addMapping(TABLE_Demand_Submit,DemandSubmit.class);

        arp.addMapping(TABLE_Project,Project.class);
        arp.addMapping(TABLE_Project_Build,ProjectBuild.class);
        arp.addMapping(TABLE_Cu_Build,CuBuild.class);

        arp.addMapping(TABLE_Project_Address,ProjectAddress.class);
        arp.addMapping(TABLE_Project_Submit,ProjectSubmit.class);
        arp.addMapping(TABLE_Project_Inspect,ProjectInspect.class);
        arp.addMapping(TABLE_Project_Equip,ProjectEquip.class);
        arp.addMapping(TABLE_Project_Safeguard,ProjectSafeguard.class);

        arp.addMapping(TABLE_Material,Material.class);
        arp.addMapping(TABLE_Stock,Stock.class);

        arp.addMapping(TABLE_Crm_Demand,CrmDemand.class);
        arp.addMapping(TABLE_Pms_Project,PmsProject.class);



        arp.addMapping("cu_demand",CuDemand.class);
        /*
         arp.addMapping(TABLE_Stock_Rent,StockRent.class);
        arp.addMapping("tower_info_1", Tower_info_1.class);
        arp.addMapping("tower_info_2", Tower_info_2.class);
        arp.addMapping("tower_info_3", Tower_info_3.class);
        arp.addMapping("tower_info_4", Tower_info_4.class);
        arp.addMapping("tower_info_5", Tower_info_5.class);
        arp.addMapping("tower_info_6", Tower_info_6.class);
        arp.addMapping("tower_info_7", Tower_info_7.class);
        arp.addMapping("tower_info_8", Tower_info_8.class);
        arp.addMapping("tower_info_9", Tower_info_9.class);
        arp.addMapping("tower_info_10", Tower_info_10.class);
        arp.addMapping("tower_info_11", Tower_info_11.class);
        arp.addMapping("tower_info_12", Tower_info_12.class);
        arp.addMapping("tower_info_13", Tower_info_13.class);
        arp.addMapping("tower_info_14", Tower_info_14.class);
        arp.addMapping("tower_info_15", Tower_info_15.class);
        */

	}


}
